package com.core.security.page;


import com.core.tools.PropertiesTool;

public class JsonResult {

	public boolean success = true;
	public String  msg = "";
	public Object  data = null;

	public boolean sessiontimeout = false;

	public JsonResult() {
	}
	
	public JsonResult(Object data) {
		this.data = data;
	}

	public JsonResult(Object data,Integer msgcode) {
		this.data = data;
		this.msg = PropertiesTool.getString(msgcode+"");
	}
	
	public JsonResult(Object data,Integer msgcode,boolean success) {
		this.data = data;
		this.msg = PropertiesTool.getString(msgcode+"");
		this.success = success;
	}

	public boolean isSessiontimeout() {
		return sessiontimeout;
	}
	public void setSessiontimeout(boolean sessiontimeout) {
		this.sessiontimeout = sessiontimeout;
	}
	public boolean isSuccess() {
		return success;
	}
	public void setSuccess(boolean success) {
		this.success = success;
	} 
	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}


}
